package project1.dao;

import project1.entity.Book;
import project1.entity.ShoppingCart;

public interface ShoppingCartDao {
    /**
     * 添加
     */
    void insert(Book book, int count);

    /**
     * 删除
     */
    void delete(Book book);

    /**
     * 查询指定商品的购买数
     */
    int queryCount(Book book);

    /**
     * 查询
     */
    ShoppingCart query();
}
